using System.Transactions;

public class PlayerHitState : PlayerState
{
    public PlayerHitState(PlayerFSM manager, string animationName) : base(manager, animationName) { }

    public override void OnEnter()
    {
        base.OnEnter();
    }

    public override void OnUpdate()
    {
        base.OnUpdate();

        // 转换到死亡状态
        if (parameter.isDead)
        {
            manager.TransitionState(StateType.Death);
        }
        if(parameter.isClimb){
            manager.TransitionState(StateType.ClimbBegin);
        }

        if(PlayComplete()){
             manager.TransitionState(StateType.Idle);
        }
    }

    public override void OnFixedUpdate()
    {
        base.OnFixedUpdate();
    }

    public override void OnExit() {
        base.OnExit();
         parameter.isHurt = false;
     }
}
